Skip to content

Fix #866 #869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 27, 2015
Merged

Fix #866 #869

merged 3 commits into from
Oct 27, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Oct 26, 2015

Fixes #866 and also the problem that total counts of errors were sometimes more than the
number of error messages reported.

... making use of method in `ctx`.
Used in rewritten `errorsReported` method. This fixes scala#866. The problem
before was that `TyperState#trywithFallBack` temporarily updates
the reporter, so crawling up the context chain to check for reporters
with errors missed some reported errors, which triggered the assertion
in `Tree#withType`.
If an error message was supressed to count it in the total.
@odersky
Copy link
Contributor Author

odersky commented Oct 26, 2015

Review by @smarter

@smarter
Copy link
Member

smarter commented Oct 26, 2015

Otherwise LGTM.

odersky added a commit that referenced this pull request Oct 27, 2015
@odersky odersky merged commit c1facd5 into scala:master Oct 27, 2015
@allanrenucci allanrenucci deleted the fix-#866 branch December 14, 2017 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants